
const sequelize = require('../shared/sequelize')
// const Discuss = sequelize.import('./model/discuss')
const Collection = require('../model/collection')(sequelize,sequelize.DataTypes)

//发送功能
exports.viewCollection = async function(){
      const {rows,count} = await Collection.findAndCountAll()
    const colList = rows.map(row=>row.toJSON())
    return {colList,count:count}
}

